package com.simple.crawler.constant;

public enum CrawlerEngineStatus {

    READY("ready", "准备"),
    RUNNING("running", "运行"),
    STOP("stop", "停止"),;

    private String code;

    private String dec;

    CrawlerEngineStatus(String code, String dec) {
        this.code = code;
        this.dec = dec;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDec() {
        return dec;
    }

    public void setDec(String dec) {
        this.dec = dec;
    }

    @Override
    public String toString() {
        return "CrawlerEngineStatus{" +
                "code='" + code + '\'' +
                ", dec='" + dec + '\'' +
                '}';
    }

}
